package com.doctcloud.hisinfo.outpbill.controller;

import com.doctcloud.hisinfo.histable.domain.outpbill.OutpBillItemsDo;
import com.doctcloud.hisinfo.outpbill.service.impl.OutpBillItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/outpbill/")
public class OutpBillItemsController {
    @Autowired
    private OutpBillItemsService billItemsService;

    @GetMapping("/outpbillitems/listByRcpt")
    public List<OutpBillItemsDo> listByRcpt(@RequestParam("rcptNo") String rcptNo){
        return billItemsService.listByRcpt(rcptNo);
    }
}
